package com.eleadmin.common.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.eleadmin.common.system.entity.UserAddress;
import com.eleadmin.common.system.param.UserAddressParam;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Mapper
 *
 * @author EleAdmin
 * @since 2025-04-27 23:27:57
 */
public interface UserAddressMapper extends BaseMapper<UserAddress> {

    /**
     * 分页查询
     *
     * @param page  分页对象
     * @param param 查询参数
     * @return List<UserAddress>
     */
    List<UserAddress> selectPageRel(@Param("page") IPage<UserAddress> page,
                             @Param("param") UserAddressParam param);

    /**
     * 查询全部
     *
     * @param param 查询参数
     * @return List<User>
     */
    List<UserAddress> selectListRel(@Param("param") UserAddressParam param);

    List<UserAddress> listByUserIds(@Param("userIds") List<Integer> userIds);

}
